jQuery(document).ready(function($){
    // set height for element by class jh*
    jQuery('[class*="jh"]').each(function(){
        var h = 0;
        var c = jQuery(this).attr('class');
        c = c.split(" ");
        for(var i=0; i<c.length; i++){
            if(c[i].indexOf('jh') == 0 ){
                h=c[i].substring(2);
                jQuery(this).css('height',h+'px');
            }
        }
    });
    function pikameslide(){
        if(jQuery("#pikame").length){
            jQuery("#pikame").PikaChoose({
                showCaption:false,
                autoPlay:false, 
                text: {
                    previous: "", 
                    next: ""
                }, 
                thumbOpacity:0.5,
                showTooltips:false
            });}
        
    }
    pikameslide();
    jQuery('#detailTab a').click(function (e) {
        e.preventDefault();
        jQuery(this).tab('show');
        jQuery('.tab-pane').jScrollPane({
            showArrows : true,
            verticalArrowPositions: 'after',
            verticalDragMaxHeight: 80
            
        });
    });
    jQuery('.tab-pane').jScrollPane({
        showArrows : true,
        verticalArrowPositions: 'after',
        verticalDragMaxHeight: 80
    });
    
});
jQuery(window).load(function(){
    var hl = jQuery('.ourfoods.special > .fl').height();
    var hr = jQuery('.ourfoods.special > .fr').height();
    var h  = (hl>hr)?hl:hr;
    h=h-50;
    jQuery('.ourfoods.special > .fl').css('height',h+'px');
})